package com.ugoodtech.mdcc.core.domain.StationLeanPaintSatisfactionReport;

import com.ugoodtech.mdcc.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMode;

import javax.persistence.*;
import java.util.List;

/**
 * 精益板喷kpi报告统计
 */

@ApiModel("精益板喷kpi报告统计")
@Entity
@Table(name = "station_lean_paint_kpi_report")
public class StationLeanPaintSatisfactionReport extends BaseEntity {

    @ApiModelProperty("填写报告者")
    private Long reportUser;

    @ApiModelProperty("维修站ID")
    private Long stationId;

    @ApiModelProperty("报告ID")
    private Long reportId;

    @ApiModelProperty("改善日期")
    private String improvementTimStr;

    @ApiModelProperty("服务商")
    private String serviceComapny;

    @ApiModelProperty("服务商地址")
    private String servoceCpmpanyAddress;

    @ApiModelProperty("创建时间")
    private String createTimeStr;

    @ApiModelProperty("维修站联系人")
    private String contantPerson;

    @ApiModelProperty("运营数据分析一览")
    private OperationalDataAnalysis operationalDataAnalysis;

    @ApiModelProperty("单元运营一览")
    private UnitOperations unitOperations;

    @ApiModelProperty("总体产能一览")
    private OverallOperations overallOperations;

    @ApiModelProperty("经济性数据")
    private EconomicData economicData;

    @ApiModelProperty("是否是改善月")
    private Boolean isImprovementTim;


    public String getServiceComapny() {
        return serviceComapny;
    }

    public void setServiceComapny(String serviceComapny) {
        this.serviceComapny = serviceComapny;
    }

    public String getServoceCpmpanyAddress() {
        return servoceCpmpanyAddress;
    }

    public void setServoceCpmpanyAddress(String servoceCpmpanyAddress) {
        this.servoceCpmpanyAddress = servoceCpmpanyAddress;
    }

    public String getCreateTimeStr() {
        return createTimeStr;
    }

    public void setCreateTimeStr(String createTimeStr) {
        this.createTimeStr = createTimeStr;
    }

    public String getContantPerson() {
        return contantPerson;
    }

    public void setContantPerson(String contantPerson) {
        this.contantPerson = contantPerson;
    }


    @ManyToOne
    @JoinColumn(name = "operational_id")
    public OperationalDataAnalysis getOperationalDataAnalysis() {
        return operationalDataAnalysis;
    }

    public void setOperationalDataAnalysis(OperationalDataAnalysis operationalDataAnalysis) {
        this.operationalDataAnalysis = operationalDataAnalysis;
    }

    @ManyToOne
    @JoinColumn(name = "unit_id")
    public UnitOperations getUnitOperations() {
        return unitOperations;
    }

    public void setUnitOperations(UnitOperations unitOperations) {
        this.unitOperations = unitOperations;
    }

    @ManyToOne
    @JoinColumn(name = "overall_id")
    public OverallOperations getOverallOperations() {
        return overallOperations;
    }

    public void setOverallOperations(OverallOperations overallOperations) {
        this.overallOperations = overallOperations;
    }

    @ManyToOne
    @JoinColumn(name = "economic_id")
    public EconomicData getEconomicData() {
        return economicData;
    }

    public void setEconomicData(EconomicData economicData) {
        this.economicData = economicData;
    }

    public Long getReportId() {
        return reportId;
    }

    public void setReportId(Long reportId) {
        this.reportId = reportId;
    }

    public String getImprovementTimStr() {
        return improvementTimStr;
    }

    public void setImprovementTimStr(String improvementTimStr) {
        this.improvementTimStr = improvementTimStr;
    }

    public Boolean getImprovementTim() {
        return isImprovementTim;
    }

    public void setImprovementTim(Boolean improvementTim) {
        isImprovementTim = improvementTim;
    }

    public Long getStationId() {
        return stationId;
    }

    public void setStationId(Long stationId) {
        this.stationId = stationId;
    }

    public Long getReportUser() {
        return reportUser;
    }

    public void setReportUser(Long reportUser) {
        this.reportUser = reportUser;
    }
}
